package com.lewei.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.lewei.dao.SqliteDao;
/**
 * 常量类
 * @author 22901
 *
 */
public class Constants {
	

	public static  String PRINTNUM = "0";

	/** 获取当前时间 */
	public static  String NEWDATA = "2017-01-01";
	/** 規則路徑 */
	public static  String RULEPATH = "C:\\toolsZ\\labelPrint\\config\\rule.xlsx";
	
	public static  String SGBRULEPATH = "C:\\toolsZ\\labelPrint\\config\\SGBrule.xlsx";
	/** 證書路徑 */
	public static  String CERTIFICATEPATH = "C:\\toolsZ\\labelPrint\\config\\certificateNo.xlsx";
	/** Excel 文件路径 */
	public static String EXCELPATHOL100;
	/** Excel 文件路径 */
	public static String EXCELPATHOL35;
	/** Excel 文件路径 */
	public static String EXCELPATHOL35SCHINDLER;
	/** Excel 文件路径 */
	public static String EXCELPATHOL35SCHINDLERCN;
	/** Excel 文件路径 */
	public static String EXCELPATHOL25;
	/** Excel 文件路径 */
	public static String EXCELPATHSGB;
	/** Excel 文件路径 */
	public static String EXCELPATHSGB05;
	/** Excel 文件路径 */
	public static String EXCELPATHSGB05CN;
	
	/** 80340英文标签上边距 */
	public static double LABELTOP80340E = 0;
	
	/** 80340英文标签左边距 */
	public static double LABELLEFT80340E = 0;
	
	/** 80340中文标签上边距 */
	public static double LABELTOP80340 = 0;
	
	/** 80340英文标签左边距 */
	public static double LABELLEFT80340 = 0;
	
	/** 900540英文标签上边距 */
	public static double LABELTOP900540E = 0;
	
	/** 900540英文标签左边距 */
	public static double LABELLEFT900540E = 0;
	
	/** 900540中文标签上边距 */
	public static double LABELTOP900540 = 0;
	
	/** 900540中文标签左边距 */
	public static double LABELLEFT900540 = 0;

	/** 80420中文标签上边距 */
	public static double LABELTOP80420 = 0;
	
	/** 80420中文标签左边距 */
	public static double LABELLEFT80420  = 0;
	
	public static  double LABELTOPOL35CNE = 0;
	
	public static double LABELLEFTOL35CNE  = 0;
	
	/** 1018300英文标签上边距 */
	public static double LABELTOP1018300E = 0;
	
	/** 1018300英文标签左边距 */
	public static double LABELLEFT1018300E = 0;
	
	/** 1018300中文标签上边距 */
	public static double LABELTOP1018300 = 0;
	
	/** 1018300中文标签左边距 */
	public static double LABELLEFT1018300 = 0;
	
	/** SGB中文标签上边距 */
	public static double LABELTOPSGB = 0;
	
	/** SGB中文标签左边距 */
	public static double LABELLEFTSGB = 0;
	
	/** SGB05中文标签上边距 */
	public static double LABELTOPSGB05 = 0;
	/** SGB05中文标签左边距 */
	public static double LABELLEFTSGB05 = 0;
	
	/** SGB05CN中文标签上边距 */
	public static double LABELTOPSGB05CN = 0;
	/** SGB05CN中文标签左边距 */
	public static double LABELLEFTSGB05CN = 0;	
	
	/** OL35SCHINDLERCN中文标签上边距 */
	public static double LABELTOPOL35SCHINDLERCN = 0;
	/** OL35SCHINDLERCN中文标签左边距 */
	public static double LABELLEFTOL35SCHINDLERCN = 0;	
	
	/** OL35SCHINDLER标签上边距 */
	public static double LABELTOPOL35SCHINDLER = 0;
	/** OL35SCHINDLER标签左边距 */
	public static double LABELLEFTOL35SCHINDLER = 0;	
	
	
	/** 标签字体大小 */
	public static int LABELFONTSIZE = 6;
	
	
	/**
	 * 不允许实例化。
	 */
	private Constants(){};
	
	static {
		SqliteDao sd=new SqliteDao();
		EXCELPATHOL100 = sd.getPath("OL100");
		EXCELPATHOL35 = sd.getPath("OL35");
		EXCELPATHOL25 = sd.getPath("OL25");
		EXCELPATHSGB = sd.getPath("SGB");
		EXCELPATHSGB05 = sd.getPath("SGB05");
		EXCELPATHSGB05CN = sd.getPath("SGB05CN");
		EXCELPATHOL35SCHINDLER = sd.getPath("OL35SCHINDLER");
		EXCELPATHOL35SCHINDLERCN = sd.getPath("OL35SCHINDLER");
		CERTIFICATEPATH = sd.getPath("certificate");
		RULEPATH = sd.getPath("rule");
		SGBRULEPATH = sd.getPath("SgbRule");
		Date date=new Date();
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
		NEWDATA = formatter.format(date);
	}
}
